﻿<BadHabit_WPFTools:ShapedWindow x:Class="BadHabit.Factory.Windows.ProjectPerformanceReport"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:BadHabit_WPFTools="clr-namespace:BadHabit.WPFTools;assembly=BadHabit.WPFTools"     

    xmlns:props="clr-namespace:BadHabit.Factory.Properties"                                
                                
    WindowStartupLocation="CenterScreen"                                

    Style="{StaticResource NormalWindow}"
    ResizeMode="CanResizeWithGrip"     
                                
    Loaded="ShapedWindow_Loaded"
                                
    
                                   
            
    Title="{x:Static props:Resources.Project_Performance_Report}"    
    Height="600"
    Width="800"
    Icon="/Images/WindowsIcons/Factory.ico">

    <Grid Background="{StaticResource GradientSilverTubeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <ToolBar  x:Name="ToolBar" Grid.Row="0" ToolBarTray.IsLocked="True">

            <TextBlock VerticalAlignment="Center" Style="{StaticResource Label}" Text="{x:Static props:Resources.Report}"/>
            <BadHabit_WPFTools:ComboBox                                       
                    x:Name="reportTemplateComboBox"                    
                    Style="{StaticResource FormComboBox}"
                    SelectionChanged="reportTemplateComboBox_SelectionChanged"/>
            
            <TextBlock VerticalAlignment="Center" Style="{StaticResource Label}" Text="{x:Static props:Resources.From}"/>
            <BadHabit_WPFTools:ComboBox                                       
                    x:Name="yearComboBox"                    
                    Style="{StaticResource FormComboBox}"
                    SelectionChanged="yearComboBox_SelectionChanged"/>
                

            <TextBlock VerticalAlignment="Center" Style="{StaticResource Label}" Text="{x:Static props:Resources.Restrict_to_member}" />
            <BadHabit_WPFTools:ComboBox       
                    x:Name="memberComboBox"
                    Style="{StaticResource TeamComboBox}"
                    SelectionChanged="memberComboBox_SelectionChanged"
                    ItemsSource="{Binding Source={StaticResource ActiveTeamMemberList}}"/>
                
            <Separator/>
            
            <Menu>
                <MenuItem
                    x:Name="exportButton"   
                    Style="{StaticResource ToolBarMenuItem}"                                                
                    Header="{x:Static props:Resources.Export}"
                    Click="exportButton_Click">
                    <MenuItem.Icon>
                        <Image Source="/Images/ToolBar/Export.png" Stretch="Uniform" Width="32" Height="32"/>
                    </MenuItem.Icon>
                </MenuItem>
                
                <MenuItem
                    x:Name="printButton" 
                       
                    Style="{StaticResource ToolBarMenuItem}"                                                
                    Header="{x:Static props:Resources.Print}"
                    Click="printButton_Click">
                    <MenuItem.Icon>
                        <Image Source="/Images/ToolBar/Printer.png" Stretch="Uniform" Width="32" Height="32"/>
                    </MenuItem.Icon>
                </MenuItem>

            </Menu>



        </ToolBar>

        <Border
                Grid.Row="1"
                HorizontalAlignment="Stretch"
                Style="{StaticResource RoundBorder}"
                Margin="3">
            
                <FlowDocumentScrollViewer
                    x:Name="flowDocumentViewer"
                    Grid.Row="1"
                    
                    IsToolBarVisible="True"
                    HorizontalAlignment="Stretch"
                    VerticalAlignment="Stretch"
                    Margin="0,0,0,0"
                    MinZoom="50"                
                    Zoom="100"
                    MaxZoom="150"/>
            
        </Border>

    </Grid>

</BadHabit_WPFTools:ShapedWindow>
